// 用户的状态vuex
const user = {
	namespaced: true,
	state: {
		hasLogin: false, //用户登录状态
		username: '', //存储用户名
	},
	mutations: {
		islogin(state, payload) { //改变用户登录状态
			state.hasLogin = payload
		},
		saveusername(state, payload) {
			state.username = payload
		},
	},
	actions: {},
	getters: {},
	modules: {}
}

export default user;
